﻿<%@ CODEPAGE=65001 %>
<%
'///////////////////////////////////////////////////////////////////////////////
'// 插件应用:    Z-Blog 2.0 其它版本未知
'// 插件制作:    狼的旋律(http://www.wilf.cn) / zsx(http://www.zsxsoft.com)
'// 备    注:    从Google Map插入GPS信息
'// 最后修改:
'// 最后版本:
'///////////////////////////////////////////////////////////////////////////////
%>
<% Option Explicit %>
<% 'On Error Resume Next %>
<% Response.Charset="UTF-8" %>
<% Response.Buffer=True %>
<!-- #include file="../../c_option.asp" -->
<!-- #include file="../../../zb_system/function/c_function.asp" -->
<!-- #include file="../../../zb_system/function/c_system_lib.asp" -->
<!-- #include file="../../../zb_system/function/c_system_base.asp" -->
<!-- #include file="../../../zb_system/function/c_system_plugin.asp" -->
<!-- #include file="../p_config.asp" -->

<%
Call System_Initialize()
Call WindsPhoto_Initialize()

Call CheckReference("")

If BlogUser.Level>1 Then Call ShowError(6)
If CheckpluginState("windsphoto") = False Then Call ShowError(48)

Dim lat,lng
lat = Request.QueryString("lat")
lng = Request.QueryString("lng")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" language="javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var map_id = 'mymap';
var p1 = '<%=lat%>';
var p2 = '<%=lng%>';
var mark = 'mark';
var title = '';
var content = '';
var width = 600;
var height = 350;
var view_level = 13;
</script>
</head>
<body style="margin:0;">
<div id="mymap" style="width:600px; height:350px;">loading...</div>
<div>
<input type="text" id="address" style="width:200px;" /><input type="button" id="doSearch" onclick="doSearch();" value="查找位置" />
<input type="button" onclick="markmap();" id="markbtn" value="标注" />
<input type="button" onclick="javascript:try{window.opener.document.getElementById('lat').value=document.getElementById('point1').value;window.opener.document.getElementById('lng').value=document.getElementById('point2').value}catch(e){};window.close();" id="ok" value="确定" style="font-weight:bold;" />
<input type="button" onclick="javascript:try{window.opener.document.getElementById('lat').value=0;window.opener.document.getElementById('lng').value=0}catch(e){};window.close();" id="delete" value="删除" style="float:right;" title="不显示地图位置" />
</div>
<input type="hidden" id="point1" value=''/>
<input type="hidden" id="point2" value=''/>
<script type="text/javascript" language="javascript" src="script/googlemap_v3.js"></script>
</body>
</html>